package pl.wroc.uni.ii.gdomo.data;

import java.io.Serializable;
import java.util.Date;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable
public class HighScore implements Serializable{
	
	private static final long serialVersionUID = -553589985641842016L;

	@DatabaseField private Long score;	
	@DatabaseField private String name;
	@DatabaseField private Date date;
	@DatabaseField private String hardship;

	public HighScore(Long score, String name, Date date, String hardship) {
		this.score = score;
		this.name = name;
		this.date = date;
		this.hardship = hardship;
	}
	
	public HighScore() {
		
	}

	public Long getScore() {
		return score;
	}

	public void setScore(Long score) {
		this.score = score;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getHardship() {
		return hardship;
	}

	public void setHardship(String hardship) {
		this.hardship = hardship;
	}
	
	@Override
	public String toString() {
		return Long.toString(score) + " " + hardship + " " + date + " " + name;
	}
}